import request from "@/utils/request"
import { Login, Register } from "./type";

export const doLogin = (data: Login) => {
    return request.post("/auth/login", data);
}

export const doGetCaptcha = () => {
    return request.get("/auth/captcha", {
    })
}

export const doRegister = (register: Register) => {
    return request.post("/auth/register", register)
}

export const doLogout = () => {
    return request.post("/auth/logout");
}